blend

fun blend(@ColorInt ambientColor: Int, @ColorInt spotColor: Int): Int(source)

Calculates a color blended from ambientColor and spotColor, proportional to their theme alpha values.

The current blending formula gives proper results only if both colors are fully opaque; i.e., only if both ambientColor and spotColor have maximum alpha values.